//
// CRawSkinNormalCache.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

public class CRawSkinNormalCache {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public CRawSkinNormalCache(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(CRawSkinNormalCache obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CRawSkinNormalCache(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public void setVertices1(SWIGTYPE_p_NLMISC__CObjectVectorT_NL3D__CRawVertexNormalSkin1_false_t value) {
    nel3dJNI.CRawSkinNormalCache_Vertices1_set(swigCPtr, this, SWIGTYPE_p_NLMISC__CObjectVectorT_NL3D__CRawVertexNormalSkin1_false_t.getCPtr(value));
  }

  public SWIGTYPE_p_NLMISC__CObjectVectorT_NL3D__CRawVertexNormalSkin1_false_t getVertices1() {
    return new SWIGTYPE_p_NLMISC__CObjectVectorT_NL3D__CRawVertexNormalSkin1_false_t(nel3dJNI.CRawSkinNormalCache_Vertices1_get(swigCPtr, this), true);
  }

  public void setVertices2(SWIGTYPE_p_NLMISC__CObjectVectorT_NL3D__CRawVertexNormalSkin2_false_t value) {
    nel3dJNI.CRawSkinNormalCache_Vertices2_set(swigCPtr, this, SWIGTYPE_p_NLMISC__CObjectVectorT_NL3D__CRawVertexNormalSkin2_false_t.getCPtr(value));
  }

  public SWIGTYPE_p_NLMISC__CObjectVectorT_NL3D__CRawVertexNormalSkin2_false_t getVertices2() {
    return new SWIGTYPE_p_NLMISC__CObjectVectorT_NL3D__CRawVertexNormalSkin2_false_t(nel3dJNI.CRawSkinNormalCache_Vertices2_get(swigCPtr, this), true);
  }

  public void setVertices3(SWIGTYPE_p_NLMISC__CObjectVectorT_NL3D__CRawVertexNormalSkin3_false_t value) {
    nel3dJNI.CRawSkinNormalCache_Vertices3_set(swigCPtr, this, SWIGTYPE_p_NLMISC__CObjectVectorT_NL3D__CRawVertexNormalSkin3_false_t.getCPtr(value));
  }

  public SWIGTYPE_p_NLMISC__CObjectVectorT_NL3D__CRawVertexNormalSkin3_false_t getVertices3() {
    return new SWIGTYPE_p_NLMISC__CObjectVectorT_NL3D__CRawVertexNormalSkin3_false_t(nel3dJNI.CRawSkinNormalCache_Vertices3_get(swigCPtr, this), true);
  }

  public void setVertices4(SWIGTYPE_p_NLMISC__CObjectVectorT_NL3D__CRawVertexNormalSkin4_false_t value) {
    nel3dJNI.CRawSkinNormalCache_Vertices4_set(swigCPtr, this, SWIGTYPE_p_NLMISC__CObjectVectorT_NL3D__CRawVertexNormalSkin4_false_t.getCPtr(value));
  }

  public SWIGTYPE_p_NLMISC__CObjectVectorT_NL3D__CRawVertexNormalSkin4_false_t getVertices4() {
    return new SWIGTYPE_p_NLMISC__CObjectVectorT_NL3D__CRawVertexNormalSkin4_false_t(nel3dJNI.CRawSkinNormalCache_Vertices4_get(swigCPtr, this), true);
  }

  public void setSoftVertices(SWIGTYPE_p_unsigned_int value) {
    nel3dJNI.CRawSkinNormalCache_SoftVertices_set(swigCPtr, this, SWIGTYPE_p_unsigned_int.getCPtr(value));
  }

  public SWIGTYPE_p_unsigned_int getSoftVertices() {
    long cPtr = nel3dJNI.CRawSkinNormalCache_SoftVertices_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_unsigned_int(cPtr, false);
  }

  public void setHardVertices(SWIGTYPE_p_unsigned_int value) {
    nel3dJNI.CRawSkinNormalCache_HardVertices_set(swigCPtr, this, SWIGTYPE_p_unsigned_int.getCPtr(value));
  }

  public SWIGTYPE_p_unsigned_int getHardVertices() {
    long cPtr = nel3dJNI.CRawSkinNormalCache_HardVertices_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_unsigned_int(cPtr, false);
  }

  public void setTotalSoftVertices(long value) {
    nel3dJNI.CRawSkinNormalCache_TotalSoftVertices_set(swigCPtr, this, value);
  }

  public long getTotalSoftVertices() {
    return nel3dJNI.CRawSkinNormalCache_TotalSoftVertices_get(swigCPtr, this);
  }

  public void setTotalHardVertices(long value) {
    nel3dJNI.CRawSkinNormalCache_TotalHardVertices_set(swigCPtr, this, value);
  }

  public long getTotalHardVertices() {
    return nel3dJNI.CRawSkinNormalCache_TotalHardVertices_get(swigCPtr, this);
  }

  public void setGeomorphs(SWIGTYPE_p_std__vectorT_NL3D__CMRMWedgeGeom_t value) {
    nel3dJNI.CRawSkinNormalCache_Geomorphs_set(swigCPtr, this, SWIGTYPE_p_std__vectorT_NL3D__CMRMWedgeGeom_t.getCPtr(value));
  }

  public SWIGTYPE_p_std__vectorT_NL3D__CMRMWedgeGeom_t getGeomorphs() {
    long cPtr = nel3dJNI.CRawSkinNormalCache_Geomorphs_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_std__vectorT_NL3D__CMRMWedgeGeom_t(cPtr, false);
  }

  public void setRdrPass(SWIGTYPE_p_std__vectorT_NL3D__CIndexBuffer_t value) {
    nel3dJNI.CRawSkinNormalCache_RdrPass_set(swigCPtr, this, SWIGTYPE_p_std__vectorT_NL3D__CIndexBuffer_t.getCPtr(value));
  }

  public SWIGTYPE_p_std__vectorT_NL3D__CIndexBuffer_t getRdrPass() {
    long cPtr = nel3dJNI.CRawSkinNormalCache_RdrPass_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_std__vectorT_NL3D__CIndexBuffer_t(cPtr, false);
  }

  public void setLodId(int value) {
    nel3dJNI.CRawSkinNormalCache_LodId_set(swigCPtr, this, value);
  }

  public int getLodId() {
    return nel3dJNI.CRawSkinNormalCache_LodId_get(swigCPtr, this);
  }

  public void setMeshDataId(long value) {
    nel3dJNI.CRawSkinNormalCache_MeshDataId_set(swigCPtr, this, value);
  }

  public long getMeshDataId() {
    return nel3dJNI.CRawSkinNormalCache_MeshDataId_get(swigCPtr, this);
  }

  public void setVertexRemap(SWIGTYPE_p_NLMISC__CObjectVectorT_NL3D__CRawSkinVertex_p_false_t value) {
    nel3dJNI.CRawSkinNormalCache_VertexRemap_set(swigCPtr, this, SWIGTYPE_p_NLMISC__CObjectVectorT_NL3D__CRawSkinVertex_p_false_t.getCPtr(value));
  }

  public SWIGTYPE_p_NLMISC__CObjectVectorT_NL3D__CRawSkinVertex_p_false_t getVertexRemap() {
    return new SWIGTYPE_p_NLMISC__CObjectVectorT_NL3D__CRawSkinVertex_p_false_t(nel3dJNI.CRawSkinNormalCache_VertexRemap_get(swigCPtr, this), true);
  }

  public void clearArrays() {
    nel3dJNI.CRawSkinNormalCache_clearArrays(swigCPtr, this);
  }

  public CRawSkinNormalCache() {
    this(nel3dJNI.new_CRawSkinNormalCache(), true);
  }

}
